package cn.wit.summit.chwan.ui.service;

import android.content.Context;
import android.content.Intent;
import android.support.v4.app.JobIntentService;

import cn.wit.summit.chwan.utils.LogUtils;

/**
 * Created by Alan on 2018/7/3.
 */

public class MyJobIntentService extends JobIntentService {

    /**
     * 这个Service 唯一的id
     */
    static final int JOB_ID = 10111;

    /**
     * Convenience method for enqueuing work in to this service.
     */
    public static void enqueueWork(Context context, Intent work) {
        LogUtils.e("tbl>>>>0:");
        try {
            LogUtils.e("tbl>>>>00:");
            enqueueWork(context, MyJobIntentService.class, JOB_ID, work);
        } catch (Exception e) {
            LogUtils.e("tbl>>>>333:"+e.getMessage());
        }
        LogUtils.e("tbl>>>>000:");
    }

    @Override
    protected void onHandleWork( Intent intent) {
//        LogUtils.e("housononHandleWork: "+intent.getStringExtra("work").toString());
    }
}
